#ifndef SQL_QUERY_P_H
#define SQL_QUERY_P_H

#include <QtCore/QObject>
#include <QtSql/QSqlQuery>

namespace dbmanager {

class QueryHandler;
class DatabaseManager;

class SqlQueryPrivate : public QObject {
  Q_OBJECT
public:

  SqlQueryPrivate(bool return_result, bool use_transaction);

  ~SqlQueryPrivate();

  bool success;

  bool use_transaction;

  bool return_result;

  QList<QString> queries;

  QList<QSqlRecord *> results;

  int fault_code;

  QString fault_string;
};

} // namespace dbmanager

#endif // SQL_QUERY_P_H
